package com.sikaryofficial.backend.domain.vo.export;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.univocity.parsers.annotations.Format;
import com.univocity.parsers.annotations.Parsed;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

import static com.sikaryofficial.backend.constant.ProductConstant.CONTENT_QR_CODE_ROW_HEIGHT;

/**
 * @author : qinjinyuan
 * @desc : TODO  请填写你的功能描述
 * @date : 2025/03/20 19:07
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ExcelIgnoreUnannotated
@ContentRowHeight(CONTENT_QR_CODE_ROW_HEIGHT)
public class UserRegisterExportVO {
    @Parsed(field = "用户ID" , index = 0)
    private Long userId;
    @Parsed(field = "用户ID", index = 1)
    private String userName;
    @Parsed(field = "用户ID", index = 2)
    private String nickName;
    @Parsed(field = "邮箱", index = 3)
    private String email;
    @Parsed(field = "注册时间", index = 4)
    @Format(formats = {"yyyy-MM-dd HH:mm:ss"})
    private Date createTime;
    @Parsed(field = "firstName", index = 5)
    private String firstName;
    @Parsed(field = "lastName", index = 6)
    private String lastName;
    @Parsed(field = "国家", index = 7)
    private String country;
    @Parsed(field = "注册来源", index = 8)
    private String source;
    @Parsed(field = "注册类型", index = 9)
    private String registerType;
    @Parsed(field = "注册IP", index = 10)
    private String registerIp;
    @Parsed(field = "用户积分", index = 11)
    private Long balance;
}
